}
if (scopeGroup != null) {
portletDataContext.setScopeGroupId(scopeGroup.getGroupId());
}
}
catch (PortalException pe) {
}
if (scopeGroup != null) {
portletDataContext.setScopeGroupId(scopeGroup.getGroupId());
Map<Long, Long> groupIds =
(Map<Long, Long>)portletDataContext.getNewPrimaryKeysMap(